﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Next_Generation_App
{
    public partial class frmLogin : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void BtnLogin_Click(object sender, EventArgs e)
        {
            //get user login name and password
            string userName = tbxUserName.Text;
            string password = tbxPassword.Text;

            if (userName == "teacher" && password == "teacher")
            {
                Response.Redirect("index_Teacher.aspx");
            }
            if (userName == "student" && password == "student")
            {
                Response.Redirect("");
            }
        

        }
    }
}